package cms.jason.web.controller;

import cms.jason.dao.ArticleSiteDao;
import cms.jason.entity.ArticleSite;
import cms.jason.entity.ArticleSite_;
import com.cn.lotary.base.dao.BaseDao;
import com.cn.lotary.base.web.BaseController;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.persistence.metamodel.SingularAttribute;

/**
 *
 * @author Jason
 */
@ManagedBean
public class ArticleSiteController extends BaseController<ArticleSite> {

    @EJB
    private ArticleSiteDao articleSiteDao;

    @Override
    protected BaseDao<ArticleSite> dao() {
        return articleSiteDao;
    }

    @Override
    protected SingularAttribute selectItemLabel() {
        return ArticleSite_.name;
    }
}
